Searched hist:"8 c9c1701c7c23a57ebfd1a0b27b87053ae43cfb5" (Results 1 – 2 of 2) sorted by relevance
/linux/include/linux/ |
H A D | memblock.h | diff 8c9c1701c7c23a57ebfd1a0b27b87053ae43cfb5 Fri Jan 15 00:20:42 CET 2016 Alexander Kuleshov <kuleshovmail@gmail.com> mm/memblock: introduce for_each_memblock_type()
We already have the for_each_memblock() macro in <linux/memblock.h> which provides ability to iterate over memblock regions of a known type. The for_each_memblock() macro allows us to pass the pointer to the struct memblock_type, instead we need to pass name of the type.
This patch introduces a new macro for_each_memblock_type() which allows us iterate over memblock regions with the given type when the type is unknown.
Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|
/linux/mm/ |
H A D | memblock.c | diff 8c9c1701c7c23a57ebfd1a0b27b87053ae43cfb5 Fri Jan 15 00:20:42 CET 2016 Alexander Kuleshov <kuleshovmail@gmail.com> mm/memblock: introduce for_each_memblock_type()
We already have the for_each_memblock() macro in <linux/memblock.h> which provides ability to iterate over memblock regions of a known type. The for_each_memblock() macro allows us to pass the pointer to the struct memblock_type, instead we need to pass name of the type.
This patch introduces a new macro for_each_memblock_type() which allows us iterate over memblock regions with the given type when the type is unknown.
Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|